﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using DTO;

namespace WCF
{
    [ServiceContract]
    public interface IWCFAgencia
    {
        [OperationContract]
        List<DTO.Agencia> list();

        [OperationContract]
        DTO.Agencia getByID(int id);

        [OperationContract]
        DTO.Agencia getByName(String nome);

        [OperationContract]
        DTO.Agencia getByCodAgencia(string codAgencia);

        [OperationContract]
        void update(DTO.Agencia toUpdate);

    }
}
